package com.mvp.shq.washer.ui.shop.shopAddAddress;

import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.shop.AddressData;
import com.mvp.shq.washer.http.RxSchedulers;
import com.mvp.shq.washer.http.ShopApi;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/10/10.
 */

public class Model implements ShopAddAddressConstract.Model {

    @Override
    public Observable<BaseResult<String>> addOrUpdateAddress(String token, String userId,String id, String receiverPhone, String receiverName, String provinceId, String provinceName, String cityId, String cityName, String areaId, String areaName, String unitId, String unitName, String detailAddress, String status) {
        return ShopApi.getInstance().service
                .addAddress(token,userId,id,receiverPhone,receiverName,provinceId,provinceName,cityId,cityName,areaId,areaName,unitId,unitName,detailAddress,status)
                .compose(RxSchedulers.io_main());
    }
}
